package com.service.impl;


import com.dao.IAccountDao;
import com.dao.impl.AccountDaoImpl;
import com.service.IAccountService;

/**
 * 账户的业务层实现类
 */
public class AccountServiceImpl implements IAccountService {
    // 此处依赖关系需要解决
    private IAccountDao accountDao = new AccountDaoImpl();

    // 初始化方法
    public AccountServiceImpl() {
        System.out.println("对象创建了");
    }

    public void saveAccount() {
        accountDao.saveAccount();
    }
}
